//
//  SZLMessageContentViewController.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/5.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "SZLMessageContentViewController.h"
#import "HomeNetService.h"
#import "SZLAccountHelper.h"
#import "SZLNavigationController.h"

@interface SZLMessageContentViewController ()<SZLNavigationControllerDelegate>
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
@property (weak, nonatomic) IBOutlet UILabel *contentLab;

@end

@implementation SZLMessageContentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"消息详情";
    self.timeLab.text = self.model.formatCreateDate;
    self.contentLab.text = self.model.content;
    [self getRead];
}
- (void)getRead
{
    [HomeNetService messageReadWithParame:@{@"id":@(self.model.ID),@"token":[SZLAccountHelper shareInstance].token} response:^(BOOL success, NSString *msg) {
        
    }];
}
- (BOOL)szlNavigationControllershouldPopItem:(SZLNavigationController *)navi
{
    if (self.lookSuccessBlock) {
        self.lookSuccessBlock(self.model);
    }
    return YES;
}

@end
